import { request } from 'umi';

export async function getCodeTemplateAll() {
  return request('/qz/api/generator/template');
}

export function putCodeTemplate(genre: String, data: String) {
  return request(`/qz/api/generator/template/${genre}`, {
    method: 'put',
    data: data,
  });
}
